package cate.common.table.guild;

import cate.common.table.XSSFRowWrap;
import cate.common.table.conditiontask.ConditionTIdRow;
import easy.java.dev.note.NoteField;

public class GuildEnvelopeRow extends ConditionTIdRow {
    @NoteField(value = "红包金额")
    public int amount;

    @NoteField(value = "货币类型")
    public byte mtype;

    @NoteField(value = "红包个数")
    public int redEnvelopeNum;

    @NoteField(value = "红包名称")
    public String name;

    @NoteField(value = "发放者奖励")
    public String issuerRewardStr;

    @NoteField(value = "贡献值")
    public int PNum;

    @NoteField(value = "每日发放次数上限")
    public int maxIssueNum;

    @NoteField(value = "人民币消耗")
    public int rmb;

    @NoteField(value = "红包价值")
    public int value;

    @NoteField(value = "日志文本ID")
    public int tipsId;

    @NoteField(value = "公会活跃任务ID")
    public int taskId;

    @NoteField(value = "充值项ID")
    public int payId;

    @Override
    public void parse(XSSFRowWrap xr) {
        this.id = xr.getInteger("红包ID", 0);
        this.tid = xr.getInteger("红包ID", 0);
        this.amount = xr.getInteger("红包金额", 0);
        this.mtype = xr.getByte("货币类型", (byte) 0);
        this.name = xr.getString("红包名称","");
        this.redEnvelopeNum = xr.getInteger("红包个数", 0);
        this.issuerRewardStr = xr.getString("发放者奖励","");
        this.PNum = xr.getInteger("贡献值",0);
        this.maxIssueNum = xr.getInteger("每日发放次数上限", Integer.MAX_VALUE);
        this.conditionId = xr.getInteger("条件ID",0);
        this.rmb = xr.getInteger("人民币消耗", 0);
        this.value = xr.getInteger("红包价值", 0);
        this.tipsId = xr.getInteger("日志文本ID", 0);
        this.taskId = xr.getInteger("公会活跃任务ID", 0);
        this.payId = xr.getInteger("充值项ID",0);
    }
}
